package com.cxlin.cwanandroid.store

import com.cxlin.cwanandroid.model.bean.User
import com.tencent.mmkv.MMKV

/**
 *
 * @Author: chenxunlin
 * @Date: 2024/5/21 16:57
 */
object MMKVManager {

    val kv = MMKV.defaultMMKV()

    var user: User?
        get() = kv.decodeParcelable("user", User::class.java)
        set(value) {
            kv.encode("user", value)
        }
}